package com.dream.model;

import java.io.Serializable;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;
@Entity
@Table(name="sys_user_question")
public class Sys_User_Question  extends AllId implements Serializable
{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private SysUser sysUser;
	
	private Sys_Question sys_Question;
	
	private Integer qValue;//学生的答分
	
	private String qtype;//答案类型1语音，2视频，3图片，4文字
	
	private String uAnsouwer;//学生答案
	
	private Integer  scompleteTime;//学生完成时间
	
	private String isChecked="0";//0表示未阅，1表示已经阅


	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public SysUser getSysUser()
	{
		return sysUser;
	}

	public void setSysUser(SysUser sysUser)
	{
		this.sysUser = sysUser;
	}

	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade(CascadeType.PERSIST)
	public Sys_Question getSys_Question()
	{
		return sys_Question;
	}

	public void setSys_Question(Sys_Question sys_Question)
	{
		this.sys_Question = sys_Question;
	}

	public Integer getqValue()
	{
		return qValue;
	}

	public void setqValue(Integer qValue)
	{
		this.qValue = qValue;
	}

	public String getQtype()
	{
		return qtype;
	}

	public void setQtype(String qtype)
	{
		this.qtype = qtype;
	}

	public String getuAnsouwer()
	{
		return uAnsouwer;
	}

	public void setuAnsouwer(String uAnsouwer)
	{
		this.uAnsouwer = uAnsouwer;
	}

	public Integer getScompleteTime()
	{
		return scompleteTime;
	}

	public void setScompleteTime(Integer scompleteTime)
	{
		this.scompleteTime = scompleteTime;
	}

	

	public String getIsChecked() {
		return isChecked;
	}

	public void setIsChecked(String isChecked) {
		this.isChecked = isChecked;
	}
	
	

}
